<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\Route;



Route::get('/','index/index/index');


//帖子
Route::get('/post','index/Post/index');
Route::get('/postdetail','index/Post/detail'); 
 
//聊天室
Route::get('/sendinfo','index/Gateway/index'); 
Route::post('/bind','index/Gateway/bind'); 
Route::post('/message','index/Gateway/message'); 
Route::post('/close','index/Gateway/close'); 
Route::post('/online','index/Gateway/online'); 
Route::post('/upload','index/Gateway/upload'); 
Route::post('/editupload','index/Gateway/editupload'); 
//商品或食物
Route::get('/foodlist','index/food/index'); 
Route::get('/fooddetail','index/food/detail'); 
Route::get('/food/type','index/food/type');
//评论列表
Route::get('/evaluate/list','index/evaluate/list');
//评论添加
Route::post('/evaluate/insert','index/evaluate/insert');
//获取购物车数据
Route::get('/food/getcardata','index/food/getcardata');
//加入购物车
Route::post('/food/joincar','index/food/joincar');
//移除购物车
Route::get('/food/removecar','index/food/removecar');
//商品推荐 
Route::get('/commend/today','index/Commend/today');
//订单
Route::post('/Orderadd','index/Order/add');
Route::get('/Orderdetail','index/Order/detail'); 
Route::get('/Order/index','index/Order/index'); 
Route::get('/Order/status_change','index/Order/status_change'); 
Route::get('/Order/order_goods','index/Order/order_goods'); 
//支付
Route::get('/pay','index/Pay/index'); 
Route::get('/qrcode','index/Pay/qrcode'); 

//用户
Route::post('/register','index/User/register'); 
Route::post('/login','index/User/login'); 
Route::get('/queryuser','index/User/queryuser'); 
Route::post('/changeuser','index/User/changeuser'); 
Route::get('/checkusername/:username','index/User/checkusername'); 
Route::get('/checkcode/:code','index/User/checkcode'); 
Route::get('/sendCode','index/User/sendCode');
Route::get('/address','index/User/address'); 
Route::post('/addressadd','index/User/addressadd'); 
Route::post('/addresssave','index/User/addresssave'); 
Route::post('/setdefalut','index/User/setdefalut'); 
Route::get('/weather','index/User/weather');
 
//频道
Route::get('/channel/index','index/Channel/index'); 
